﻿using Ross.OA.Entities;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ross.OA.EntityFramework.Model
{
    [Table("POHeads")]
    public class POHeads : Entity<Guid>, IHasCreationTime
    {
        /// <summary>
        /// 采购单号
        /// </summary>
        [Required, MaxLength(50)]
        public string order_code { get; set; }
        /// <summary>
        /// 爱玛分公司编码
        /// </summary>
        [Required, MaxLength(50)]
        public string company_code { get; set; }
        /// <summary>
        /// 爱玛分公司名称
        /// </summary>
        [MaxLength(50)]
        public string company_name { get; set; }
        /// <summary>
        /// 供应商编码
        /// </summary>
        [MaxLength(50)]
        public string supplier_code { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        [MaxLength(50)]
        public string supplier_name { get; set; }
        /// <summary>
        /// 供应商联系人
        /// </summary>
        [MaxLength(50)]
        public string supplier_contacts { get; set; }
        /// <summary>
        /// 供应商联系电话
        /// </summary>
        [MaxLength(50)]
        public string supplier_tele { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime sap_create_date { get; set; }
        /// <summary>
        /// 订单类型代码
        /// </summary>
        [MaxLength(50)]
        public string order_type { get; set; }
        /// <summary>
        /// 订单类型描述
        /// </summary>
        [MaxLength(50)]
        public string order_type_name { get; set; }
        /// <summary>
        /// 采购组代码
        /// </summary>
        [MaxLength(50)]
        public string purchase_gcode { get; set; }
        /// <summary>
        /// 采购组描述
        /// </summary>
        [MaxLength(50)]
        public string purchase_gname { get; set; }
        /// <summary>
        /// 采购明细工厂代码列表，正常下只有1个
        /// </summary>
        [MaxLength(50)]
        public string factory_code_list { get; set; }
        /// <summary>
        /// 处理状态，0=未处理，1=接收，2=已拒绝
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? DealTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
    }

}
